package com.iris.live.services.data.repositories;

import com.iris.live.services.data.models.Lsh精品信息Model;
import com.iris.live.services.models.PageData;
import com.iris.live.services.services.AfterMarketService;
import org.springframework.data.repository.NoRepositoryBean;

import java.util.List;
import java.util.Map;

/**
 * Created by sxy on 2016/8/1
 */
@NoRepositoryBean
public interface AfterMarketRepository {

    PageData getProductList(int pageSize, int pageIndex, String permit,
                            int type, int classify, String source, String product, String productCode, int NC,
                            String area, String car, int productID, String factory,String totalCount,String carSource,String brand,
                            String series,String carType,String carParticulars);

    List getProductPic(int productID);

    List getProductArea(int productID);

    List getProductCar(int productID);

    List getProductClassify(int type, String permit);

    List getProductType(Integer queryType);

    List getNCType();

    List getBusniessByName(List re);


    PageData getProductCombo(int pageSize, int pageIndex, String permit,
                             String comboID, String comboName, String area, String factory, String createUser,
                            String carSource,String brand,String series,String carType,String carParticulars);

    PageData getBusinessAlllist(int pageSize, int pageIndex);

    List getProductComboPic(int comboID);

    List getProductComboArea(int comboID);

    List getProductComboCar(int comboID);

    List getProductByComboID(int comboID);

    PageData getAfterMarketOrder(String permit, AfterMarketService.GetAfterMarketOrderRequest request);

    Map getProduct(int id);

    Map findQualityInfoByFuzzyId(Integer id, String source);

    List isExistQualityInfo(String productNum, String source);

    Map findComboInfoByProductNumAndUser(String productNum, String createUser);

    List findQualityInfoByComboId(Integer comboId);

    List isExistComboInfo(String productNum, String createUser);

    List getFollowCarInfoByPermit(String permit);

    List getAllArea();

    Map findQualityInfoByProductNumAndSource(String productNum, String source);

    List getAllQualityInfoBySource(String source);

    List isExistfallowCar(String permit, String 启用时间, String 停用时间, Integer 车型编号, Integer 项目成本编号);

    List getAfterMarketShopAllId(String ids);

    List getAfterMarketShopAllbusiness(String ids);

    List getBbmodelListByBtTaxNo(List<AfterMarketService.getBusinessticketsStatus> relist);

    Lsh精品信息Model getAfterMarketOrdersProductById(int productId);

  // boolean saveAfterMarketOrderProductDetail (ValueModel valueModel);
    PageData getAfterMarketProductTypeAndDetail(int pageSize, int pageIndex,  String type);

    //List saveOederstatusAndmsg(String id1,String id2,String id3);

    // 获得 的是  接收人user
    List getuserMessages();

    //获取到 的 是 报价精品详细表
    List getSelfByidAndComId(int cid,int id);

   // 获得 list 套餐信息
    List findDetailtaocangDetailBytwoId(String idsss);


    // 获取的 是 订单编号
    Map getdingdanbianhao(String ids,String permit);

    //you
    List getAfterMarketWeekDailyDetailOne(String year, String years, String yearss);

    // you
    List getAfterMarketWeekDailyDetailOneDaqu();

    List getplists(String daqu);

    List getAfterMarketWeekDailyDetailtwos(String year, String monthss, String daqu);

    List getplistbysole();

    /**
     * 获取指定月份的精品集采清单
     * @param year
     * @param month
     * @return
     */
    List getPurchasedProductList(String year, String month);

    /**
     * 获取各个Dealer指定月份的精品集采清单
     * @param year
     * @param month
     * @return
     */
    List getPurchasedProductList4Dealer(String year, String month);


    List getAfterMarkettwoWeekDailyDetailtwosons(String years, String months, String permit, String productid);

    List getAfterMarkettwoWeekDailyDetailtwosonstongxue(String years, String months, String permit, String productid);

    List getAfterMarkettwoWeekDailyDetailtwoThree(String prodson, String years, String months);

    List getAfterMarkettwoWeekDailyDetailtwoThrees(String prodson, String years, String months, String prodsonid);

    List getAfterMarkettwoWeekDailyDetailtwosonsbysole(String years, String months, String permit, String productid);

    PageData getAfterMarketWeekonestwo(int sizes, int b);

    List getAfterMarketWeekonestwos();

    List findAllbysqland();

    PageData getVendorMailList(int index, int size);

    /**
     * 根据精品编号，获得精品的报价信息
     * @param productId 精品编号
     * @return 返回
     */
    List getProductQuotation(Integer productId);

    /**
     * 根据精品编号，获得精品套餐详细
     * @param productId 精品编号
     * @return 返回
     */
    List getProductPackageDetail(Integer productId);

    /**
     * 根据精品编号，获得套餐信息
     * @param productId 精品编号
     * @return 返回
     */
    List getPackageInfo(Integer productId);
}
